package com.eric.domain.dto;

import com.eric.domain.po.Roles;
import com.eric.domain.po.User;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class URDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    private Integer userRoleId;

    private Integer userId;

    private Integer roleId;

    //  User
    private String loginname;

    private String realname;

    //    Roles
    private String roleName;

//    public list or one

    private User user;
    private List<User>userList;
    private Roles roles;
    private List<Roles>rolesList;

}
